package com.baizhi.service.impl;

import com.baizhi.dao.UserDao;
import com.baizhi.entity.User;
import com.baizhi.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;
    @Override
    public List<User> selectUser() {
        List<User> users = userDao.selectUser();
        return users;
    }

    @Override
    public void updateUser(Integer userId) {
        userDao.updateUser(userId);
    }
}
